package org.jeecg.modules.engine.controller;


import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.engine.service.IRequirementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/requirement")
public class RequirementController {
    @Autowired
    private IRequirementService requirementService;

    @GetMapping("/generateRequisitions/{engineeringId}")
    public Result generateRequisitions(@PathVariable String engineeringId){
        requirementService.generateRequisitions(engineeringId);
        return Result.ok();
    }
}
